
// 前端路由表
export const constantRouterComponents = {
  'TabsView': () => import('@/layouts/tabs/TabsView.vue'),
  'BasicView': () => import('@/layouts/BasicView.vue'),
  'RouteView': () => import('@/layouts/RouteView.vue'),
  'BlankView': () => import('@/layouts/BlankView.vue')
}

/**
* 基础路由表
*/
export const constantRouters = [
 {
   path: '/login',
   name: 'Login',
   meta: { title: "登录页面" },
   component: () => import('@/views/login/Login.vue')
 },
 {
  path: '/',
  name: '首页',
  redirect: '/login',
  component: constantRouterComponents['TabsView']
 },
 {
   path: '*',
   name: '404',
   meta: { title: "404页面" },
   component: () => import('@/views/exception/404.vue')
 },
 {
   path: '/403',
   name: '403',
   meta: { title: "403页面" },
   component: () => import('@/views/exception/403.vue')
 }
]

/**
 * 根路由节点
 */
export const rootRouter = {
  path: '/',
  name: '首页',
  meta: {  title: '框架页' },
  redirect: '/login',
  children: [],
  component: constantRouterComponents['TabsView'],
}
